html {
    cursor: url(../images/alternate.png) 16 16, auto;
}

a,
button,
input {
    cursor: url(../images/link.png) 16 16, pointer;
}

p,
span,
h2,
label {
    cursor: url(../images/text.png) 16 16, text;
}

body {
    margin: 0px 15px;
    height: 100vh;
    color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../images/bg.webp) no-repeat 100% 100% / cover fixed;
    -webkit-tap-highlight-color: transparent;
}

.login-container {
    width: 360px;
    padding: 2rem;
    border-radius: 16px;
    background: rgb(255 255 255 / 15%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 4px 6px -1px rgb(0 0 0 / 10%),
        0 2px 4px -2px rgb(0 0 0 / 10%);
    border: 1px solid rgb(255 255 255 / 20%);
}

h2 {
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.form-container {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.form-container.active {
    display: block;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #f0f0f0;
}

.input-wrapper {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #fff;
    background: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: rgb(255 255 255 / 40%);
    background: rgb(255 255 255 / 15%);
}

.form-group input::placeholder {
    color: rgb(255 255 255 / 50%);
}

.action-buttons {
    margin-top: 2rem;
}

button {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background: rgb(255 255 255 / 25%);
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 8px;
    transition: all 0.3s ease;
}

button:hover {
    background: rgba(128, 128, 128, 0.35);
}

/* 消息弹窗样式 */
.msg {
    position: fixed;
    top: 20px;
    right: 15px;
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
    z-index: 9999;
    border: 1px solid rgb(255 255 255 / 20%);
    -webkit-animation: fadeInTop .6s forwards;
            animation: fadeInTop .6s forwards;
}

/* 背景颜色样式 */
.msg-red { background-color: rgba(166, 19, 19, 0.7); }
.msg-green { background-color: rgba(0, 126, 0, 0.7); }
/* 淡出动画样式 */
.msg-right { -webkit-animation: fadeOutRight .8s forwards; animation: fadeOutRight .8s forwards; }

/* 动画效果 */
@-webkit-keyframes fadeInTop {
    0% { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInTop {
    0% { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 1; transform: translateY(0); }
}

@-webkit-keyframes fadeOutRight {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}

@keyframes fadeOutRight {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}

@-webkit-keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}